package org.rency.crawler.dal.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 描述: 元数据配置
 * 类型: JAVA<br>
 * 最近修改时间:2017/8/4 11:10<br>
 *
 * @author CaiyuRen
 * @version [版本号, V1.0]
 * @since 2017/8/4 11:10
 */
@Document(collection = "fetchState")
@CompoundIndexes({
    @CompoundIndex(name = "uidx_name", def = "{'fsCode':1}", unique = true)})
public class FetchStateDO extends BaseDO {

  @Id
  private String id;

  /**
   * 抓取状态名称
   */
  private String fsName;

  /**
   * 抓取状态码
   */
  private String fsCode;

  /**
   * 抓取状态服务
   */
  private String fsService;

  /**
   * 抓取状态描述
   */
  private String fsDescription;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getFsName() {
    return fsName;
  }

  public void setFsName(String fsName) {
    this.fsName = fsName;
  }

  public String getFsCode() {
    return fsCode;
  }

  public void setFsCode(String fsCode) {
    this.fsCode = fsCode;
  }

  public String getFsService() {
    return fsService;
  }

  public void setFsService(String fsService) {
    this.fsService = fsService;
  }

  public String getFsDescription() {
    return fsDescription;
  }

  public void setFsDescription(String fsDescription) {
    this.fsDescription = fsDescription;
  }
}
